clear;clc;
close all;

src = "D:\workspace\workspace\RATR_GAN_based\DATA\M1A1\theta=85,phi=(0,0.01,180),8-10GHz";
dst = "D:\Users\Data\";
target_name = "M1A1";
obj = CSTDataLoader(src, dst, target_name, 'num_freq', 129, 'win_type', 'rectwin', 'sigma', 0.01);
save(obj, [0,90], [85,91], "train");
save(obj, [0,45], [85,91], "validation");
obj.sigma = 0.01;
obj.win_type = 'hanning';
plot(obj, 10, 85, 'ph');
% [lb, data] = read(obj, [0,90], [90,91]);


